![]() | ![]() | ![]() | ![]() | ![]() |
The generation of PROC OLAP code from within SAS OLAP Cube Studio or SAS Data Integration Studio might cause the client application to hang. This will occur when metadata components are missing from the table registrations.
When a cube is created from star schema input, two items are added to the column registrations within the tables. The first is a ForeignKey registration and it is associated with a PartnerUniqueKey. If either component is later deleted, the generation of the PROC OLAP will fail and the client will become unresponsive.
It is possible to correct these fields so that the code can be generated. The following instructions can be used to accomplish this, or you can use the data step code included on the Full Code tab. Before performing any modifications, we strongly recommend that you back up the SAS® Metadata Server and your data.
<PhysicalTable Id="A5DZ22JM.BK0003VU" Name="ORDER_FACT" Desc=""/>
<ForeignKey Id="A5DZ22JM.BP0003V1" Name="FactTable_ForeignKey" Desc=""/> <ForeignKey Id="A5DZ22JM.BP0003V2" Name="FactTable_ForeignKey" Desc=""/> <ForeignKey Id="A5DZ22JM.BP0003V3" Name="FactTable_ForeignKey" Desc=""/> <ForeignKey Id="A5DZ22JM.BP0003V4" Name="FactTable_ForeignKey" Desc=""/>
Product Family | Product | System | SAS Release | |
Reported | Fixed* | |||
SAS System | SAS OLAP Cube Studio | Microsoft Windows 2000 Advanced Server | 9.1 TS1M0 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M0 | |||
Microsoft Windows 2000 Server | 9.1 TS1M0 | |||
Microsoft Windows 2000 Professional | 9.1 TS1M0 | |||
Microsoft Windows NT Workstation | 9.1 TS1M0 | |||
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M0 | 9.2 TS2M0 | ||
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M0 | 9.2 TS2M0 | ||
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M0 | 9.2 TS2M0 | ||
Microsoft Windows XP Professional | 9.1 TS1M0 | 9.2 TS2M0 | ||
SAS System | SAS Data Integration Studio | Microsoft® Windows® for x64 | 9.1 TS1M3 SP3 | 9.2 TS2M0 |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP3 | |||
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP3 | |||
Microsoft Windows 2000 Server | 9.1 TS1M3 SP3 | |||
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP3 | |||
Microsoft Windows NT Workstation | 9.1 TS1M3 SP3 | |||
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP3 | 9.2 TS2M0 | ||
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP3 | 9.2 TS2M0 | ||
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP3 | 9.2 TS2M0 | ||
Microsoft Windows XP Professional | 9.1 TS1M3 SP3 | 9.2 TS2M0 | ||
Windows Vista | 9.1 TS1M3 SP3 | 9.2 TS2M0 |
Before modifying any metadata, back up your SAS Metadata Server.
You must update the options at the top of the code before submitting.
options
metaserver="your server"
metaport=8561
metaprotocol=bridge
metauser="Your User"
metapass="Your Password"
metarepository="Foundation";
data _null_;
length uri_fk $256;
length uri_pk $256;
length status $256;
nobj=0;
n=1;
nobj=metadata_getnobj("omsobj:ForeignKey?@Id contains '.'",n,uri_fk);
do i = 1 to nobj;
nobj=metadata_getnobj("omsobj:ForeignKey?@Id contains '.'",i,uri_fk);
nasn=metadata_getnasn(uri_fk, "PartnerUniqueKey", n, uri_pk);
if nasn = -4 then do;
status = catt(uri_fk,' should be deleted');
deletion = METADATA_DELOBJ(uri_fk);
select (deletion);
when (0) status = catt(uri_fk, ' was successfully deleted');
when (-1) status = 'Unable to connect to the metadata server';
when (-2) status = 'The deletion was unsuccessful. See the SAS log for details';
when (-3) status = 'No objects match the given URI';
otherwise;
end;
end;
else status = catt(uri_fk,' should not be deleted');
put status;
end;
run;
Type: | Problem Note |
Priority: | medium |
Topic: | Data Management ==> Data Sources ==> Metadata Software Components ==> Cube Designer System Administration ==> Servers ==> Metadata Query and Reporting ==> OLAP (Online Analytical Processing) |
Date Modified: | 2008-08-28 15:02:52 |
Date Created: | 2008-08-25 14:25:29 |